.el-container {
  &.full-height {
    height: 100%;
    overflow-y: hidden;
  }
  &.form-designer-container {
    background: #fff;
    /* 防止aside样式被外部样式覆盖！！ */
    :deep(aside) {
      margin: 0;
      padding: 0;
      background: inherit;
    }
  }
  &.form-designer-center {
    min-height: 300px;
  }
}

.form-designer {
  &-header {
    display: flex;
    min-width: 800px;
    height: 48px !important;
    line-height: 48px !important;
    border-bottom: 2px dotted #EBEEF5;
    .header-left {
      display: flex;
      align-items: center;
      justify-items: center;
      font-size: 18px;
      color: #242424;
      img {
        cursor: pointer;
        width: 36px;
        height: 36px;
      }
      span.bold {
        font-size: 20px;
        font-weight: bold;
        margin: 0 6px 0 6px;
      }
      span.version-span {
        font-size: 14px;
        color: #101F1C;
        margin-left: 6px;
      }
    }
    .header-right {
      display: flex;
      align-items: center;
      margin-left: auto;
      // .el-dropdown-link {
      //   margin-right: 12px;
      //   cursor: pointer;
      // }
      a {
        font-size: 13px;
        text-decoration: none;
        margin-right: 10px;
        color: #606266;
      }
    }
  }
  &-aside-left {
    width: 260px;
    position: relative;
    overflow-y: hidden;
    transition: all .3s;
    &.hidden {
      width: 0;
    }
  }
  &-aside-right {
    width: 300px;
    position: relative;
    transition: all .3s;
    &.hidden {
      width: 0;
    }
  }
}

@mixin toggleBase {
  position: absolute;
  cursor: pointer;
  height: 60px;
  width: 12px;
  top: calc(50% - 18px);
  color: #909399;
  background: #fff;
  z-index: 8;
  display: flex;
  align-items: center;
  font-size: 18px;
  transition: all .3s;
  &:hover {
    transform: scale(1.2);
    color: var(--el-color-primary);
  }
}
.aside-toggle {
  &-left {
    @include toggleBase;
    left: 258px;
    border-radius: 0 8px 8px 0;
    &.hidden {
      left: -2px;
    }
    .toggle-icon {
      position: relative;
      right: 2px;
    }
  }
  &-right {
    @include toggleBase;
    right: 298px;
    border-radius: 8px 0 0 8px;
    &.hidden {
      right: -2px;
    }
    .toggle-icon {
      position: relative;
      right: 4px;
    }
  }
}

.center-scrollbar {
  height: 100%;
  :deep(.el-scrollbar__wrap),
  :deep(.el-scrollbar__view) {
    overflow-x: hidden;
  }
}

.designer-center-container {
  min-width: 680px;
  border-left: 2px solid #EBEEF5;
  border-right: 2px solid #EBEEF5;
  .toolbar-header {
    font-size: 14px;
    border-bottom: 2px solid #EBEEF5;
    height: 40px !important;
  }
  .form-widget-main {
    height: calc(100% - 41px);
    padding: 0;
    position: relative;
    overflow-x: hidden;
  }
}
